package com.jhgsys.internal.peccancy.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author yangjie
 * @date 2024-09-10 15:25:28
 */
@Data
@TableName("peccancy_module_config")
public class PeccancyModuleConfig implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "module_config_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String moduleConfigId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 审核开关;0：不开启 1：开启
     */
    @TableField("review_switch")
    @Size(max = 1, message = "{noMoreThan}")
    private String reviewSwitch;

    /**
     * 审核方式;1：手动审核 2:流程审核
     */
    @TableField("review_type")
    @Size(max = 2, message = "{noMoreThan}")
    private String reviewType;

    /**
     * 签发开关;0：不开启 1：开启
     */
    @TableField("issued_switch")
    @Size(max = 1, message = "{noMoreThan}")
    private String issuedSwitch;

    /**
     * 签发方式;1：手动签发 2:流程签发
     */
    @TableField("issued_type")
    @Size(max = 2, message = "{noMoreThan}")
    private String issuedType;

    /**
     * 新增人
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}